package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.DepositRecord;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface DepositRecordMapper {

    int insertDepositRecord(DepositRecord depositRecord);    // 保存租车押金记录

    int deleteById(Long id); // 根据主键删除租车押金记录

    List<DepositRecord> selectByPage(Map<String, Object> params);

    BigDecimal sumMoney(Map<String, Object> params);        //条件查询总押金收入

    BigDecimal sumMoneyRepay(Map<String, Object> params);    //条件查询押金退还总额

    BigDecimal sumMoneySurplus(Map<String, Object> params); //条件查询押金剩余总额

    Long countByPage(Map<String, Object> params);

    BigDecimal sumMoneyRepayByOrderId(Long id);
}
